package server.modules.generator.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 评论
 * 
 *
 *
 */
@Data
@TableName("note_comment")
public class NoteCommentEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId
	private Long id;
	/**
	 * 笔记id
	 */
	private Long noteId;
	/**
	 * 拥有者
	 */
	private Long userId;
	/**
	 * 
	 */
	private Long targetUserId;
	/**
	 * 
	 */
	private Date createdTime=new Date();
	/**
	 * 评论内容
	 */
	private String context;
	/**
	 * 父级id
	 */
	private Long replyId;

	@TableField(exist = false)
	private List<NoteCommentEntity> childs;

}
